package com.plian.system.service.pm.subjectEvaluation.impl;


import com.plian.system.entity.pm.subjectevaluation.SubjectEvaluation;
import com.plian.system.mapper.pm.subjectevaluation.SubjectEvaluationMapper;
import com.plian.system.mybatis.base.BaseServiceImpl;
import com.plian.system.mybatis.support.Condition;
import com.plian.system.service.pm.subjectEvaluation.ISubjectEvaluationService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 转让（划转）标的评估情况 服务实现类
 *
 */
@Slf4j
@Service
@AllArgsConstructor
public class SubjectEvaluationServiceImpl extends BaseServiceImpl<SubjectEvaluationMapper, SubjectEvaluation> implements ISubjectEvaluationService {
    @Override
    public List<SubjectEvaluation> listByParent(String pid){
        return  list(Condition.getQueryWrapper(new SubjectEvaluation()).lambda().eq(SubjectEvaluation::getIsDeleted,0)
                .eq(SubjectEvaluation::getPropertyTransactionId, pid));
    }
}
